Bitwise operators in Java

Know your primitive types AND(&) if both bits are 1, it gives 1, else it gives 0. System.out.println(Integer.toBinaryString(6)); // 110 System.out.println(Integer.toBinar ...